<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateYsReportTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('report', function(Blueprint $table)
		{
			$table->increments('id')->comment('主键id');
			$table->bigInteger('was_uid')->comment('被举报用户');
			$table->bigInteger('uid')->comment('举报用户');
			$table->tinyInteger('reason')->default(0)->comment('举报理由');
			$table->string('remarks')->nullable()->comment('备注');
			$table->integer('time')->comment('举报时间');
			$table->tinyInteger('type')->nullable()->default(0)->comment('关联举报内容1为书籍,2为吧3为帖子4为评论否则不关联');
			$table->string('relation', 100)->nullable()->comment('关联举报内容编号');
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('report');
	}

}
